package com.base;

import android.app.Application;
import android.content.Context;

import com.logger.Logger;
import com.tools.MessageNotifyTools;


/**
 * Created by Hornen on 15/9/17.
 */
public class MeifouApplication extends Application {

    private static Context context;
    @Override
    public void onCreate() {
        super.onCreate();
//        MeifouConfig.init(this);
        MeifouApplication.context = getApplicationContext();

        /**
         * 初始化Logger
         */
        Logger.enable(true);
        Logger.level(Logger.DEBUG);

        /**
         * 初始化xutils组件
         */

//        x.Ext.init(this);
//        x.Ext.setDebug(true);
//        initImageOptions();

        /**
         * 初始化JPUSH状态
         */
//        JPushInterface.setDebugMode(true);
//        JPushInterface.init(this);

        /**
         * 初始化MessageNotifyTools
         */
        MessageNotifyTools.setContext(getApplicationContext());
    }



    public static Context getAppContext() {
        return MeifouApplication.context;
    }
}
